package com.example.itshome.impl;

import android.graphics.Outline;
import android.view.View;
import android.view.ViewOutlineProvider;

public class ViewOutlineProviderImpl extends ViewOutlineProvider {


    private final float r;
    public ViewOutlineProviderImpl(float f){
        r=f;
    }
    @Override
    public void getOutline(View view, Outline outline) {
        outline.setRoundRect(0,0,view.getWidth(),view.getHeight(),r);
    }
}
